package ru.neoflex.chugunov;

import java.util.ArrayList;
import java.util.List;

public class Scan {
	private List<Word> dict;

	public Scan() {
		dict = new ArrayList<Word>();
	}

	public List<Word> getDict() {
		return dict;
	}

	public void setDict(List<Word> list) {
		this.dict = new ArrayList<Word>(list);
	}

	public void printDict() {
		if (dict != null) {
			for (int i = 0; i < dict.size(); i++) {
				System.out.println((i+1)+" slovo: "+dict.get(i).getWord()+", count: "+dict.get(i).getCount()+", eFactor: "
			+dict.get(i).geteFactor()+", interval: "+dict.get(i).getInterval()+", time: "+dict.get(i).getLastTimeMillis());
			}
		} else {
			System.out.println("Dict is empty!");
		}
	}
}
